<?php
$model = Page::model()->findByPk('contacts');

$this->pageTitle=$model->page_title;
Yii::app()->clientScript->registerMetaTag($model->page_description, 'description');
Yii::app()->clientScript->registerMetaTag($model->page_keywords, 'keywords');

$this->breadcrumbs=array(
	'Контакты',
);
?>

<div class='grid_12 alpha'>
	
	
	<div class='grid_6 alpha'>

		<?php echo $model->html; ?>
		
		<script src="http://api-maps.yandex.ru/1.1/index.xml?key=<?php echo Yii::app()->params['yandexMapsAPIKey']; ?>" type="text/javascript"></script>
		<div class='map' id='map' style="width:460px; height:300px;"></div>
		<script type="text/javascript">
			var map = new YMaps.Map(document.getElementById('map'));
			map.addControl(new YMaps.Zoom());
			map.addControl(new YMaps.ScaleLine());
			map.enableScrollZoom();
			map.setCenter(new YMaps.GeoPoint(37.648645,55.846674), 16);
			var placemark = new YMaps.Placemark(new YMaps.GeoPoint(37.648645,55.846674));
			placemark.name = "premium-tyres.ru";
			placemark.description = "интернет-магазин";
			map.addOverlay(placemark);
			placemark.openBalloon();
		</script>
	
	</div>
	
	<div class='grid_6 omega'>
		<h2 class='orange'>Отправить сообщение</h2>
		
		
		<div class='order form'>
		<form action='' method='post'>

			<div class='row'>
				<label>Имя</label>
				<input type='text' name='name'>
			</div>
			
			<div class='row'>
				<label>email</label>
				<input type='text' name='email'>
			</div>
			
			<div class='row'>
				<label>Тема вопроса</label>
				<select name='theme'>
					<option value="1">Работа сайта</option>
					<option value="2">Товары</option>
				</select>
			</div>

			<div class='row'>
				<label>Текст</label>
				<textarea name='email'></textarea>
			</div>

			<div class="row buttons">
				<button class="btn" type="submit">
						<img alt="Подобрать" src="/themes/2011/images/sendbtn2.png">
				</button>
			</div>
			
		</form>
		</div>
		
	</div>
</div>

<div class='clear'></div>

<hr class='clear' />